import Base from "./base";

const api = new Base();

export const getAuditList = (
  data: AlbumGroupFilter
): Promise<PageResult<AlbumGroupItem>> => api.get("/group/list", data);

export const getMediaContent = (groupId: number): Promise<MediaItem[]> =>
  api.get(`/group/data/${groupId}`);

export const delAlbumGroup = (groupId: number): Promise<string> =>
  api.delete(`/group/plat/${groupId}`);

export const updateAuditStatus = (
  groupId: number,
  approveStatus: number
): Promise<string> => api.patch(`/group/status/${groupId}/${approveStatus}`);
